package com.oa.util;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//@Component
@Slf4j
public class FixedPrintTask {
    private Integer i=0;
    @Scheduled(cron = "* * * * * ? ")
    public void execute(){
        log.info("thread id:{},FixedPrintTask execute times:{}", Thread.currentThread().getName(),++i);
    }
}
